/**
 * Created by TEANA on 2018/1/3.
 */
let setThemes = {
  /**
   *
   * @param index
   */
  fontSize(index){
    try {
      let fontOpts = ['fusc-ft-normal', 'fusc-ft-big', 'fusc-ft-large'];
      // var node = document.querySelector('.fusc-info-cont-content-container');
      // @TODO：获取所有的[fusc-info-cont-content-container]节点，否则无法做到多级页面同时控制
      let nodes = document.getElementsByClassName('fusc-info-cont-content-container');
      for (let i = 0; i < nodes.length; i++) {
        let node = nodes[i];
        for (let j = 0; j < fontOpts.length; j++) {
          if (node.classList.contains(fontOpts[j])) {
            node.classList.remove(fontOpts[j]);
          }
        }
        node.classList.add(fontOpts[index]);
      }
    } catch (e) {
      console.error(e);
    }
  }
};
